package org.zqh.ncc.config;

import nccloud.open.api.auto.token.cur.utils.APICurUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.PriorityBlockingQueue;

@Configuration
public class BeanConfig {
    @Bean("yfymToErpQueue")
    public PriorityBlockingQueue<YfymToErp> yfymToErpQueue() {
        return new PriorityBlockingQueue<>();
    }

    @Bean("xsToErpQueue")
    public PriorityBlockingQueue<XsToErp> xsToErpQueue() {
        return new PriorityBlockingQueue<>();
    }

    @Bean
    APICurUtils apiCurUtils() {return  new APICurUtils();}
}
